package com.security.test.springsecuritydemo1.dao;

import com.security.test.springsecuritydemo1.entity.User;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * Created with IntelliJ IDEA.
 * Description:
 *
 * @author lzy
 * @since 2022/11/10 下午2:04
 */
public interface UserRepository extends JpaRepository<User, Integer> {
  /**
   * Find user by username optional.
   *
   * @param userName the username
   * @return the optional
   */
  Optional<User> findUserByUsername(String userName);
}
